import { alovaInstance } from '@/utils/http'

export function user(id: number) {
  return alovaInstance.Get<{
    name: string
    age: number
  }>('/user/info', {
    params: {
      id,
    },
  })
}
